﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Development Mode</h2>
    <div>
        <ul>
            <li><a href="~/Areas/Admin/Dev/SqlTools">Sql Tools</a></li>
        </ul>
    </div>
    <div>
        @using (Html.BeginForm("Index", "Dev", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "cm-form-highlight cm-skip-check-items" }))
        {
    <table width="100%">
        <tr>
            <td style="width:80px"> Main Tables:</td>
            <td style="width:200px">@Html.DropDownList("tables")</td>
            <td>
               <input type="submit" name="CreateObjectMapping" value="Create Object Mapping" />
               <input type="submit" name="CreateDDL" value="Create DDL" />
                <input type="submit" name="CreateUISet" value="Create Fieldset" />
            </td>
        </tr>
        <tr>
            <td>Detail Tables:</td>
            <td>@Html.ListBox("subtables",null,new {@style="min-height:300px;"})</td>
            <td>
                Create Application Node:@Html.CheckBox("InvolveApplication",true)
                <br />
                Application Title:@Html.TextBox("Title")
            </td>
        </tr>
    </table>
       }
    </div> 
    <div>
        <h3>Data Mapping</h3>
        <br />
        <div id="datamapping">
            @ViewData["DataMappingResult"]
        </div>
    </div>
    <div>
        <h3>User Interface</h3>
        <br />
        <div id="appui">
            @ViewData["UserInterfaceResult"]
        </div>
    </div>
